/**
 * Created by Administrator on 2015/3/20.
 */
var express = require('express');
var multer = require('multer');
var bodyParser = require('body-parser');
var router = require('./lib/router');
var app = express();
var port = 8082;

app.use(bodyParser.json()); // for parsing application/json
app.use(bodyParser.urlencoded({ extended: true })); // for parsing application/x-www-form-urlencoded
app.use(multer()); // for parsing multipart/form-data

app.use('/', router);
app.listen(port, function(){
    console.log('Server is listening on port: '+port);
});